#include<valarray>
#include<iostream>
using namespace std;
template <class T>
ostream& operator<<(ostream& os, const valarray<T>& array)
{
    for(int i = 0; i != array.size(); ++i){
        os << array[i] << " ";
    }
    return os << endl;
}

int main()
{
    valarray<int> ai(10, 10);
    cout << ai;
}
